package org.stikiweb.contentMagnager;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ServletCtxListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent arg0) {
		// Reset all singletons so that the Garbage Collector can recover the class loader
		AttachmentManager.reset();
		StikiWebContext.reset();
		PageInfoNode.pageMap = null;
		PageManager.resetPM();
		PermissionManager.resetPM();

	}

	public void contextInitialized(ServletContextEvent arg0) {
		// Nothing to do -- at least for now...

	}

}
